package day04.interFace1;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/22
 */
public class Test {
    public static void main(String[] args) {
        Person manager = new Manager("张经理","北京","高级",20000.0);
        Person employee = new Employee("李四","上海","002",10000.0,10);
        System.out.println("员工具体信息：");
        System.out.println("姓名："+employee.getName());
        System.out.println("住址："+employee.getAddress());
        System.out.println("ID:"+ ((Employee)employee).getID());
        System.out.println("原始工资："+employee.getWage());
        System.out.println("涨薪后的工资：" + ((Employee)employee).add(employee.getWage()));
        System.out.println("工龄："+((Employee)employee).getWork_age());
        System.out.println("------------------------------");
        System.out.println("经理具体信息：");
        System.out.println("姓名："+manager.getName());
        System.out.println("住址："+manager.getAddress());
        System.out.println("原始工资："+manager.getWage());
        System.out.println("涨薪后的工资："+((Manager)manager).add(manager.getWage()));
        System.out.println("经理的等级："+((Manager)manager).getLevel());

    }
}
